<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
    <script>
    let arr=[12,5,8,9];

    arr.forEach((item,index)=>{
      alert(index+': '+item);
    });
    </script>
  </head>
  <body>

  </body>
</html>
